<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<html>
<head>
<title>报销申请信息</title>
<link rel="stylesheet" type="text/css" href="${ctx}/styles/ec/ecside_style.css" />
<%@include file="/common/meta.jsp"%>
<style type="text/css">

.budgetTable {
	margin: auto;
	border-top: 1px solid #000000;
	border-left: 1px solid #000000;
	margin-top: 5px;
}

.budgetTable tr td {
	height:25px;
	border-bottom: 1px solid #000000;
	border-right: 1px solid #000000;
	font-family: sans-serif;
}

.budgetTable tr th {
	background-color: #ECECEC;
	height:30px;
 	font-weight: bold;
 	font-size:13px;
 	text-align: center;
	border-bottom: 1px solid #000000;
	border-right: 1px solid #000000;
	font-family: sans-serif;
}
</style>
<script type="text/javascript">
function closeWin() {
	window.close();
}
</script>
</head>
<body>
<div class="x-panel" style="width: 100%">
<div style="margin: 5px; font-family: sans-serif; font-size: 14px; text-align: left;">
	<s:hidden name="model.id" />
    <table width="791" class="budgetTable" cellpadding="0" cellspacing="0">
		<tr> 
           <th class="title" colspan="6">报销单</th>
        </tr>	
        <tr> 
           <td align="right" width="200">报销单号：</td>
           <td align="left" >&nbsp;${model.singleNo}</td>
           <td align="right">部门名称：</td>
           <td align="left" width="160">&nbsp;${model.dept.name}</td>	 			
           <td align="right" >制单日期：</td>
           <td align="left" >&nbsp;<s:date name="model.createDate" format="yyyy-MM-dd HH:mm"/></td>		
        </tr>         
 
        <tr> 
           <td align="right" >项目类别：</td>
           <td align="left">&nbsp;${model.project.projectType.name}</td>
           <td align="right">项目名称：</td>
           <td align="left" colspan="3">&nbsp;${model.project.name}</td>	 				
        </tr>                    	
	</table>
</div>

<div style="margin: 5px; font-family: sans-serif; font-size: 14px; text-align: left;">
  <table class="budgetTable" cellpadding="0" cellspacing="0">
    <tr>
      <th colspan="6" class="title">报销单明细</th>
    </tr>
    <tr>
      <th width="40">No.</th>
      <th width="160">科目名称</th>
      <th width="302">摘要</th>
      <th width="100">金额</th>
      <th width="90">外币金额</th>
      <th width="92">外币币种</th>
    </tr>
    <s:iterator value="model.reimbDetail" var="rd" status="start">
    <tr>
      <td align="center">${start.index + 1}</td>
      <td>&nbsp;${rd.item.name}【${rd.item.code}】</td>
      <td>&nbsp;${rd.title}</td>
      <td>&nbsp;${rd.amount}</td>
      <td>&nbsp;${rd.exchangeAmount}</td>
      <td align="center">
	    <s:if test='#attr.rd.currency != null'>
	      &nbsp;${rd.currency.name}
	    </s:if>&nbsp;
      </td>
    </tr>
    </s:iterator>
  </table>
</div>

<div style="margin: 5px; font-family: sans-serif; font-size: 14px; text-align: left;">
  <table class="budgetTable" cellpadding="0" cellspacing="0">
    <tr>
      <th colspan="6" class="title">报销审核状态</th>
    </tr>
    <tr>
      <th width="40">No.</th>
      <th width="160">审核部门</th>
      <th width="100">审核人</th>
      <th width="100">审核日期</th>
      <th width="100">审核状态</th>
      <th width="284">审核意见</th>
    </tr>
    <s:iterator value="model.topFlow.nodes" var="node">
    <tr>
      <td align="center">${node.orderId}</td>
      <td>
        &nbsp;
        <s:if test="#attr.node.isFinance eq 0">
            <s:if test="#attr.node.dept != null">
	        ${node.dept.name}
	        </s:if>
	        <s:else>
	                           项目审核
	        </s:else>
        </s:if>
        <s:else>
        	<i>财务部</i>
        </s:else>
      </td>
      <td>&nbsp;${node.auditor.name}</td>
      <td>&nbsp;<s:date name="#attr.node.audDate" format="yyyy/MM/dd HH:mm"/></td>
      <td align="center">
	    <s:if test='#attr.node.status == "nopass"'>
	      <span style="color: red;">未通过</span>
	    </s:if>
	    <s:elseif test='#attr.node.status == "pass"'>
	      <span style="color: green;">通过</span>
	    </s:elseif>
	    <s:else>
	      <span style="color: silver;">未审核</span>
	    </s:else>&nbsp;
      </td>
      <td>&nbsp;${node.descn}</td>
    </tr>
    </s:iterator>
  </table>
</div>
  	<table width="791" style="margin-bottom: 10px;">
		<tr>
			<td style="text-align: center;">
			    <a href="#" onclick="closeWin()" class="button" style="width: 60px;height: 25px;">关闭</a>
			</td>
		</tr>
	</table>
</div>
</body>
</html>